#include <opencv2/opencv.hpp>
#include <iostream>

using namespace cv;
using namespace std;

int main() {
    Mat image = imread("../../../src/cre/scripts/temp/image.jpg"); // 读取图像
    if (image.empty()) {
        cout << "Cannot read image file" << endl;
        return -1;
    }

    Mat resized;
    resize(image, resized, Size(0, 0), 0.5, 0.5); // 进行图像缩放

    namedWindow("Original Image", WINDOW_NORMAL);
    namedWindow("Resized Image", WINDOW_NORMAL);

    imshow("Original Image", image);
    imshow("Resized Image", resized);

    waitKey(0);
    return 0;
}